package com.shangjinrong.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shangjinrong.domain.BorrowInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shangjinrong.domain.vo.BorrowInfoDetailVO;
import com.shangjinrong.domain.vo.BorrowInfoApprovalVO;

import java.math.BigDecimal;

public interface BorrowInfoService extends IService<BorrowInfo>{

    public void approval(BorrowInfoApprovalVO borrowInfoApprovalVo);

    BigDecimal getBorrowAmount(Long userId);

    void saveBorrowInfo(BorrowInfo borrowInfo, Long userId);

    Integer getStatusByUserId(Long userId);

    void paging(Page page);

    BorrowInfoDetailVO getBorrowInfoDetail(Long id);

}
